package com.mrslu.signkk.controller;

import com.mrslu.signkk.interceptor.PassToken;
import com.mrslu.signkk.interceptor.UserThread;
import com.mrslu.signkk.result.Result;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@RequestMapping(value = "/test")
@CrossOrigin
@ResponseBody
@Controller
public class TestController {

    @PassToken
    @GetMapping(value = "/test")
    public Result<?> test() {
        return Result.ok();
    }

}
